package entity;

// Generated 2016-8-10 9:51:13 by Hibernate Tools 4.0.0

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

/**
 * PsPoleInfo generated by hbm2java
 */
@Entity
@Table(name = "ps_pole_info")
@DynamicUpdate(true)
public class PsPoleInfo implements java.io.Serializable {
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN")
	@SequenceGenerator(name = "SEQ_GEN", sequenceName = "seq_pole_info", allocationSize = 1)
	private Integer id;
	@Column(name = "polecode")
	private String polecode;
	@Column(name = "lineid")
	private int lineid;
	@Column(name = "linecode")
	private String linecode;
	@Column(name = "linename")
	private String linename;
	@Column(name = "creationtime")
	private Date creationtime;
	@Column(name = "createdby")
	private String createdby;
	@Column(name = "lastupdatetime")
	private Date lastupdatetime;
	@Column(name = "isstart")
	private byte isstart;

	public PsPoleInfo() {
	}

	public PsPoleInfo(int id, String polecode) {
		this.id = id;
		this.polecode = polecode;
	}

	public PsPoleInfo(int id, String polecode, int lineid, String linecode,
			String linename, Date creationtime, String createdby,
			Date lastupdatetime, byte isstart) {
		this.id = id;
		this.polecode = polecode;
		this.lineid = lineid;
		this.linecode = linecode;
		this.linename = linename;
		this.creationtime = creationtime;
		this.createdby = createdby;
		this.lastupdatetime = lastupdatetime;
		this.isstart = isstart;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPolecode() {
		return this.polecode;
	}

	public void setPolecode(String polecode) {
		this.polecode = polecode;
	}

	public int getLineid() {
		return this.lineid;
	}

	public void setLineid(int lineid) {
		this.lineid = lineid;
	}

	public String getLinecode() {
		return this.linecode;
	}

	public void setLinecode(String linecode) {
		this.linecode = linecode;
	}

	public String getLinename() {
		return this.linename;
	}

	public void setLinename(String linename) {
		this.linename = linename;
	}

	public Date getCreationtime() {
		return this.creationtime;
	}

	public void setCreationtime(Date creationtime) {
		this.creationtime = creationtime;
	}

	public String getCreatedby() {
		return this.createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public Date getLastupdatetime() {
		return this.lastupdatetime;
	}

	public void setLastupdatetime(Date lastupdatetime) {
		this.lastupdatetime = lastupdatetime;
	}

	public byte getIsstart() {
		return this.isstart;
	}

	public void setIsstart(byte isstart) {
		this.isstart = isstart;
	}

}
